package app.model;

import static org.junit.Assert.*;

import java.util.LinkedList;

import org.junit.Test;

public class UserDaoImplTest {

	@Test
	public void testGetAllUsers() {
		System.out.println("----> Teste do GetAllUsers");
		UserDaoImpl u = UserDaoImpl.getInstance();
		LinkedList<UserEntity> rs = u.getAllUsers("", "", false, "teste@teste.pt");
		
		for (UserEntity it : rs) {
			System.out.println(it);
		}
	}
	
	@Test
	public void testGetEscolas() {
		System.out.println("----> Teste do GetEscolas");
		UserDaoImpl u = UserDaoImpl.getInstance();
		String[] rs = u.getEscolas();
		
		for (int i = 0; i < rs.length; i++) {
			System.out.println(rs[i]);
		}
	}
	
	@Test
	public void testUpdateUser(){
		System.out.println("----> Teste do UpdateUser");
		UserDaoImpl u = UserDaoImpl.getInstance();
		u.updateUser(new UserEntity("bla@oi.pt", "oi", "asd", "147"), "oi@oi.pt");
	}

}
